/*
 * @Author: Haochen
 * @Date: 2021-12-07 15:49:55
 * @LastEditTime: 2021-12-25 17:52:24
 * @FilePath: \recipes-admin-system\src\store\index.js
 */
import Vue from 'vue';
import Vuex from 'vuex';

import admins from './modules/admins';
import swiper from './modules/swiper';
import recipes from './modules/recipes';
import members from './modules/members';
import meals from './modules/meals';

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    num: 0,
    userInfo: null,
  },
  mutations: {
    SET_USERINFO(state, payload) {
      state.userInfo = payload;
    },
  },

  modules: {
    admins,
    swiper,
    recipes,
    members,
    meals,
  },
});
